package com.crazy.writer.demo;

import org.eclipse.swt.widgets.Shell;

import com.crazy.writer.handlers.console.view.WorkSpaceView;


public class TextDialog {

    public static void start() {
	Shell parent = WorkSpaceView.resultText.getShell();
        InputShell shell = InputShell.getInstance(parent);
        shell.setLocation(parent.getBounds().x+parent.getBounds().width-shell.getBounds().width - 50, 
        	parent.getBounds().y+parent.getBounds().height-shell.getBounds().height - 50);
        shell.open();
        shell.layout();
        shell.setVisible(true);
    }

}